extends ../layout

block content
  .container.contentTop
    .row
      table.table.table-hover.table-bordered
        thead
          tr
            th 分类名
            th 录入时间
            th 查看
            th 更新
            th 删除
          tbody
            each item in categories
              tr(class="item-id-#{item._id}")
                td #{item.name}
                td #{moment(item.meta.updateAt).format('MM/DD/YYYY')}
                td: a(target="_blank", href="../movie/#{item._id}") 查看
                td: a(target="_blank", href="../admin/update/#{item._id}") 修改
                td 
                  button.btn.btn-danger.del(type="button", data-id="#{item._id}") 删除
  script(src="/js/admin.js")